algorithm explanation

welcome to shbcf.ru